Skip to content

Issue: Building Names Do Not Get Pulled And Shown#4

Open
TsipiDev wants to merge 3 commits into
OpenSourceDUTH:info_dumpfrom
TsipiDev:fix/building-labels
Open

Issue: Building Names Do Not Get Pulled And Shown#4
TsipiDev wants to merge 3 commits into
OpenSourceDUTH:info_dumpfrom
TsipiDev:fix/building-labels

Conversation

@TsipiDev

Copy link
Copy Markdown

Fix: Added the missing MapLibre symbol layer for building labels in map4.json after the building fill layer.

Result: Style loads correctly and is now ready to render building names when upstream vector tiles expose the name property.

Note: Labels are not yet visible because the current remote tileset does not return properties.name.

@Leokratis

Copy link
Copy Markdown
Contributor

@TsipiDev From what I can tell the code you shared won't work due to different naming schemes between the osdb and the style. We would need to get the actual name used in the tileserver from the mbtiles metadata.

@TsipiDev

Copy link
Copy Markdown
Author

@TsipiDev From what I can tell the code you shared won't work due to different naming schemes between the osdb and the style. We would need to get the actual name used in the tileserver from the mbtiles metadata.

If I understand correctly in order for labels to render correctly, we must map the text-field to the actual property key used in the vector tiles, which may differ from name that I used.

I don’t have access to the MBTiles dataset used by the tile server, so this schema validation and property name extraction will need to be done on the backend side by inspecting the MBTiles metadata or tile layer fields.

Once the correct attribute key is confirmed I can update the frontend text-field accordingly and submit a follow up fix if needed.

Let me know if I understood something wrong or made a mistake!

@Leokratis

Copy link
Copy Markdown
Contributor

@TsipiDev From what I can tell the code you shared won't work due to different naming schemes between the osdb and the style. We would need to get the actual name used in the tileserver from the mbtiles metadata.

If I understand correctly in order for labels to render correctly, we must map the text-field to the actual property key used in the vector tiles, which may differ from name that I used.

I don’t have access to the MBTiles dataset used by the tile server, so this schema validation and property name extraction will need to be done on the backend side by inspecting the MBTiles metadata or tile layer fields.

Once the correct attribute key is confirmed I can update the frontend text-field accordingly and submit a follow up fix if needed.

Let me know if I understood something wrong or made a mistake!

The file link is inside the style json you just edited. You can query the data of the base layer directly from maplibre. Alternatively, you can download the original file from here

@Leokratis

Leokratis commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Actually, now that I think about it should we just draft a new style with new sprites from scratch? The one we have now -since its edited- has a lot of bloat and none of the sprites work so we need to do them at least. Might as well redo the style @TsipiDev

@Leokratis
Leokratis self-requested a review January 13, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants